let emailEl = document.querySelector('.email_new')

let user = localStorage.user && JSON.parse(localStorage.user)
// console.log(user);

request()
async function request() {

    let res = await axios({
        methed: 'GET',
        url: '/api/user',
        params: {
            userId: user.userId,
        }
    })
    console.log(res);
    let html = ''
    html += `
   ${res.data.data.email}
`
    emailEl.innerHTML = html
}